Handle.close

This is used after calling [method@Rsvg.Handle.write] to indicate that there is no more data to consume, and to start the actual parsing of the SVG document. The only reason to call this function is if you use use [method@Rsvg.Handle.write] to feed data into the @handle; if you use the other methods like [ctor@Rsvg.Handle.new_from_file] or [method@Rsvg.Handle.read_stream_sync], then you do not need to call this function.

This will return TRUE if the loader closed successfully and the SVG data was parsed correctly. Note that @handle isn't freed until [method@GObject.Object.unref] is called.

More...
class Handle
bool
close
()

Return Value

Type: bool

TRUE on success, or FALSE on error.

Detailed Description

Deprecated: Use [method@Rsvg.Handle.read_stream_sync] or the constructor functions [ctor@Rsvg.Handle.new_from_gfile_sync] or [ctor@Rsvg.Handle.new_from_stream_sync]. See the deprecation notes for [method@Rsvg.Handle.write] for more information.

Throws

GException on failure.

Meta